

//
//  BottomView.m
//  住房条件帅选器
//
//  Created by MB__Lee on 2018/5/18.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "BottomView.h"

@interface BottomView()

@property (weak, nonatomic) IBOutlet UITextField *min;
@property (weak, nonatomic) IBOutlet UITextField *max;

@property (weak, nonatomic) IBOutlet UIButton *sureBTN;

@end

@implementation BottomView
-(void)awakeFromNib{
    [super awakeFromNib];
    self.sureBTN.layer.borderWidth = 0.6;
    self.sureBTN.layer.borderColor = MB_mainSelectedColor.CGColor;
    
    self.min.layer.cornerRadius = 2;
    self.max.layer.cornerRadius = 2;
    self.min.clipsToBounds = YES;
    self.max.clipsToBounds = YES;
    
    
    
}
-(void)setPlaceHolderMin:(NSString *)minPlaceHolder max:(NSString *)maxPlaceHolder{
    self.min.placeholder = minPlaceHolder;
    self.max.placeholder = maxPlaceHolder;
}
- (IBAction)makeSure:(UIButton *)sender {
    
    if ([self.delegate respondsToSelector:@selector(BottomView:sendMin:max:)]) {
        
        [self.delegate BottomView:self sendMin:_min.text max:_max.text];
    }
    
}

@end
